package com.qf.shiro.base.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.shiro.base.entity.SysUser;

public interface SysUserMapper extends BaseMapper<SysUser> {
    default SysUser selectUserByName(String username) {
        QueryWrapper<SysUser> qw = new QueryWrapper<>();
        qw.eq(SysUser.COL_USERNAME, username);
        return this.selectOne(qw);
    }
}